//
//  AddMessageViewController.h
//  YinHang
//
//  Created by idea on 14-9-18.
//  Copyright (c) 2014年 孙彦鹏. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Message.h"

@protocol addOrAlterMessageDelegate <NSObject>

@optional

-(void)addMessageWithName:(NSString *)messageTitle MessageContent:(NSString *)messageContent;
-(void)alterMessageAtRow:(NSInteger)row withMessageTitle:(NSString *)messageTitle MessageContent:(NSString *)messageContent;

@end

@interface AddMessageViewController : UIViewController

@property (weak, nonatomic) IBOutlet UITextField *messageTitle;

@property (weak, nonatomic) IBOutlet UITextField *messageAuthor;

@property (weak, nonatomic) IBOutlet UITextView *messageContent;
@property (weak, nonatomic) IBOutlet UITextField *ltelTextField;
@property (weak, nonatomic) IBOutlet UITextField *lemailTextField;

@property (weak, nonatomic) IBOutlet UITextField *laddrTextField;



@property(nonatomic,strong)NSString *messageTitle_;

@property(nonatomic,strong)NSString *messageAuthor_;

@property(nonatomic,strong)NSString *messageContent_;

@property(nonatomic,copy)NSString *lid;

@property(nonatomic,copy)NSString *laddr;

@property(nonatomic,copy)NSString * ltel;

@property(nonatomic,copy)NSString *lemail;


@property(nonatomic,assign)NSInteger selectRow;

@property(nonatomic,assign)id<addOrAlterMessageDelegate> delegate;

@property(nonatomic,assign)BOOL isAdd;

@property(nonatomic,copy)NSString *navTitle;//标题

@end
